
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.Region;

public interface RegionDao extends Dao {

    /**
     * Retrieves all of the regions
     */
    public List getRegions(Region region);

    /**
     * Gets region's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the region's id
     * @return region populated region object
     */
    public Region getRegion(final Long id);

    /**
     * Saves a region's information
     * @param region the object to be saved
     */    
    public void saveRegion(Region region);

    /**
     * Removes a region from the database by id
     * @param id the region's id
     */
    public void removeRegion(final Long id);
}

